package com.goldgov.information.service;
public enum CrawlerPagingTempletEnum {
	
	//爬虫模板
		URL1("http://www.ccdi.gov.cn/scdc/zggb/zjsc/"),
		URL2("http://www.nxjjjc.gov.cn/jlsc/qn/index.html"),
		;
		
		private String url;
		CrawlerPagingTempletEnum(String url){
			setUrl(url);
		}
		
		public String getUrl() {
			return url;
		}

		public void setUrl(String url) {
			this.url = url;
		}

		//根据参数返回实例
		public static CrawlerPagingTempletEnum val(String operate) {
	        for(CrawlerPagingTempletEnum s : values()) {    //values()方法返回enum所有实例
	            if(operate.equals(s.getUrl()))
	                return s;
	        }
	        return null;
	    }
}